clone of my dotfiles.ssp.sh
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

adding hot keys for vim

sspaeti 318c7371 bec5a581

+61 -2
+61 -2
nvim/init.vim
··· 1 1 "set runtimepath^=~/.vim runtimepath+=~/.vim/after 2 2 "let &packpath=&runtimepath 3 3 "source ~/.vimrc 4 - syntax on 5 4 6 5 " Ignore files 7 6 set wildignore+=*.pyc ··· 13 12 set hlsearch 14 13 set ignorecase 15 14 set incsearch 15 + 16 + syntax enable " Enables syntax highlighing 16 17 set smartcase 18 + set conceallevel=0 " So that I can see `` in markdown files 19 + set tabstop=2 " Insert 2 spaces for a tab 20 + set shiftwidth=2 " Change the number of space characters inserted for indentation 21 + set smarttab " Makes tabbing smarter will realize you have 2 vs 4 22 + set expandtab " Converts tabs to spaces 23 + set smartindent " Makes indenting smart 24 + set autoindent " Good auto indent 25 + set splitbelow " Horizontal splits will automatically be below 26 + set splitright " Vertical splits will automatically be to the right 27 + set t_Co=256 " Support 256 colors 28 + set cmdheight=2 " More space for displaying messages 29 + set pumheight=10 " Makes popup menu smaller 30 + set hidden " Required to keep multiple buffers open multiple buffers 17 31 18 32 "general 19 33 "colorscheme onedark 20 - let mapleader = " " 34 + let mapleader = "\<Space>" 21 35 inoremap jk <ESC> 36 + inoremap kj <Esc> 22 37 filetype plugin indent on 38 + set clipboard=unnamedplus " Copy paste between vim and everything else 23 39 24 40 set ruler " show the cursor position all the time 25 41 set showcmd " display incomplete commands ··· 29 45 set numberwidth=5 30 46 set relativenumber 31 47 48 + " Easy CAPS 49 + inoremap <c-u> <ESC>viwUi 50 + nnoremap <c-u> viwU<Esc> 51 + 52 + " Alternate way to save 53 + nnoremap <C-s> :w<CR> 54 + " Alternate way to quit 55 + " nnoremap <C-Q> :wq!<CR> 56 + " Use control-c instead of escape 57 + nnoremap <C-c> <Esc> 58 + " <TAB>: completion. 59 + inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>" 60 + 61 + " Better tabbing 62 + vnoremap < <gv 63 + vnoremap > >gv 64 + 32 65 " Find files using Telescope command-line sugar. 33 66 nnoremap <leader>ff <cmd>Telescope find_files<cr> 34 67 nnoremap <leader>fg <cmd>Telescope live_grep<cr> 35 68 nnoremap <leader>fb <cmd>Telescope buffers<cr> 36 69 nnoremap <leader>fh <cmd>Telescope help_tags<cr> 37 70 nnoremap <C-p> <cmd>Telescope find_files<cr> 71 + nnoremap Y y$ 72 + " keeping it centered 73 + nnoremap n nzzzv 74 + nnoremap N Nzzzv 75 + nnoremap J mzJ`z 76 + 77 + " undo break points 78 + inoremap , ,<c-g>u 79 + inoremap . .<c-g>u 80 + inoremap [ [<c-g>u 81 + inoremap ( (<c-g>u 82 + 83 + " jumplist mutations 84 + nnoremap <expr> k (v:count > 5 ? "m'" . v:count : "") . 'k' 85 + nnoremap <expr> j (v:count > 5 ? "m'" . v:count : "") . 'j' 86 + 87 + "Moving text 88 + vnoremap J :m '>+1<CR>gv=gv 89 + vnoremap K :m '<-2<CR>gv=gv 90 + inoremap <C-j> <esc>:m .+1<CR>== 91 + inoremap <C-k> <esc>:m .-2<CR>== 92 + nnoremap <leader>j :m .+1<CR>== 93 + nnoremap <leader>k :m .-2<CR>== 38 94 39 95 "auto format on save with Black 40 96 autocmd BufWritePre *.py execute ':Black' ··· 63 119 64 120 "support for go to defintion and autocompletion 65 121 Plug 'davidhalter/jedi-vim' 122 + Plug 'jmcantrell/vim-virtualenv' 66 123 67 124 call plug#end() 68 125 "install with :PlugInstall ··· 71 128 "cusotm stuff just for neovim 72 129 source $HOME/.config/nvim/themes/airline.vim 73 130 source $HOME/.config/nvim/themes/onedark.vim 131 + 132 + au! BufWritePost $MYVIMRC source % " auto source when writing to init.vm alternatively you can run :source $MYVIMRC