diff options
| author | _Tradam <[email protected]> | 2021-09-26 22:47:21 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-09-26 22:47:21 -0400 |
| commit | 6a55cd1af99fd28f8de82bf81239685df9b98cba (patch) | |
| tree | afe2a4333ae36a095e518d65b089b9a1eac18509 | |
| parent | c8e8e505414046fc9264795727e0344824ec4612 (diff) | |
| download | Vim-Configs-6a55cd1af99fd28f8de82bf81239685df9b98cba.tar.gz Vim-Configs-6a55cd1af99fd28f8de82bf81239685df9b98cba.zip | |
Update vimrc
| -rw-r--r-- | vimrc | 28 |
1 files changed, 18 insertions, 10 deletions
@@ -34,19 +34,25 @@ endif " Space is used as the 'modifier'/'leader' key let mapleader = " " -" For searching buffers: +" For switching/opening buffers: nnoremap <leader>e :e **/ -" For switching buffers fast: -nnoremap <leader>l :bn<CR> -nnoremap <leader>h :bp<CR> + +" For switching buffers next/previous: +nnoremap <C-l> :bn<CR> +nnoremap <C-h> :bp<CR> + +" For cycling windows or jump to window: +nnoremap <cr> <c-w>w +nnoremap <number><cr> <number><c-w>w " Moving a line to a different spot -nnoremap <leader>k :m .-2<CR>== -nnoremap <leader>j :m .+1<CR>== -inoremap <leader>j <Esc>:m .+1<CR>==gi -inoremap <leader>k <Esc>:m .-2<CR>==gi -vnoremap <leader>j :m '>+1<CR>gv=gv -vnoremap <leader>k :m '<-2<CR>gv=gv +" Dont really use this and not sure what to map it to +" nnoremap <leader>k :m .-2<CR>== +" nnoremap <leader>j :m .+1<CR>== +" inoremap <leader>j <Esc>:m .+1<CR>==gi +" inoremap <leader>k <Esc>:m .-2<CR>==gi +" vnoremap <leader>j :m '>+1<CR>gv=gv +" vnoremap <leader>k :m '<-2<CR>gv=gv " No longer need to press shift to press : in normal and visual mode nnoremap ; : @@ -177,6 +183,8 @@ Plug 'lervag/vimtex' Plug 'vimwiki/vimwiki' " Autogenerate Markdown Table of Contents Plug 'mzlogin/vim-markdown-toc' +" Sophisticated Multi-Line Editing +Plug 'mg979/vim-visual-multi', {'branch': 'master'} call plug#end() " End of adding Vim plugins |
