Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- " Specify a directory for plugins
- " - For Neovim: ~/.local/share/nvim/plugged
- " - Avoid using standard Vim directory names like 'plugin'
- call plug#begin('~/.vim/plugged')
- " Make sure you use single quotes
- Plug 'vim-scripts/FencView.vim'
- Plug 'tomtom/tcomment_vim'
- Plug 'vim-scripts/gtags.vim'
- Plug 'tpope/vim-fugitive'
- Plug 'airblade/vim-gitgutter'
- Plug 'MarcWeber/vim-addon-mw-utils'
- Plug 'tomtom/tlib_vim'
- Plug 'garbas/vim-snipmate'
- " Initialize plugin system
- call plug#end()
- set nocompatible
- set nowrap
- " set colorcolumn=80
- set ignorecase
- set smartcase
- set hlsearch
- " disable sound errors
- set noerrorbells
- set novisualbell
- set t_vb=
- set tm=500
- " move to the other split
- map <c-j> <c-w>j
- map <c-l> <c-w>l
- map <c-k> <c-w>k
- map <c-h> <c-w>h
- " go to the previous/next tab
- map <F9> gT
- map <F10> gt
- " Bash like keys for the command line
- cnoremap <C-A> <Home>
- cnoremap <C-E> <End>
- cnoremap <C-K> <C-U>
- " set leader to ,
- let mapleader=","
- let g:mapleader=","
- " turn off search highlighting
- nmap <leader>/ :nohl<CR>
- " toggle paste mode
- nmap <leader>p :set paste!<BAR>set paste?<CR>
- " allow multiple indentation/deindentation in visual mode
- vnoremap < <gv
- vnoremap > >gv
- " change working directory to that of the current file
- cmap cd. lcd %:p:h
- imap <c-v> <ESC>"+pA
- vnoremap <C-C> "+y
- " tab settings
- au BufNewFile,BufReadPost *.html,*js,*.css setl shiftwidth=4 expandtab softtabstop=4
- map <F3> :GtagsCursor<CR>
- " restore cursor to file position in previous editing session
- set viminfo='10,\"100,:20,%,n~/.viminfo
- au BufReadPost * if line("'\"") > 0|if line("'\"") <=line("$")|exe("norm '\"")|else|exe "norm$"|endif|endif
- " clearfix
- map <c-n> :cn<CR>
- map <c-p> :cp<CR>
Add Comment
Please, Sign In to add comment