Created
August 2, 2019 11:52
-
-
Save hareeshpc/efd9987605efcea1e61dae128c55a879 to your computer and use it in GitHub Desktop.
Vimrc wip
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call plug#begin('~/.vim/plugged') | |
Plug 'junegunn/vim-easy-align' | |
Plug 'junegunn/seoul256.vim' | |
Plug 'ConradIrwin/vim-bracketed-paste' | |
Plug '/home/hareesh/.fzf' | |
Plug 'junegunn/fzf.vim' | |
Plug 'https://github.com/Alok/notational-fzf-vim' | |
Plug 'vim-airline/vim-airline' | |
" Initialize plugin system | |
call plug#end() | |
"Set the colorscheme | |
colo seoul256 | |
"Call :set background=dark|light to switch | |
" Use F9 to toggle paste modes (non indent) | |
" set pastetoggle=<F9> | |
nnoremap <F2> :set invpaste paste?<CR> | |
set pastetoggle=<F2> | |
set showmode | |
"Fast write options | |
nmap <F2> :update<CR> | |
vmap <F2> <Esc><F2>gv | |
imap <F2> <c-o><F2> | |
" Preserve selection after indentation. Visual block is still on. | |
vmap > >gv | |
vmap < <gv | |
" Map tab to indent in visual mode. Use tab and shift-tab to move instead of > | |
vmap <Tab> >gv | |
vmap <S-Tab> <gv | |
" add yaml stuffs | |
"au! BufNewFile,BufReadPost *.{yaml,yml} set filetype=yaml foldmethod=indent | |
" Get the file at https://www.vim.org/scripts/script.php?script_id=739 | |
au BufNewFile,BufRead *.yaml,*.yml so ~/.vim/yaml.vim | |
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment