Vim config tweaks
This commit is contained in:
@@ -114,3 +114,10 @@ function flocate() {
|
||||
|
||||
zgrep $1 /tmp/flocate.db --color=auto
|
||||
}
|
||||
|
||||
|
||||
#################### OS Initialization Tools ###################
|
||||
function debian_init() {
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y tmux vim curl
|
||||
}
|
||||
|
||||
@@ -71,6 +71,7 @@ map <leader>ba :1,1000 bd!<cr>
|
||||
map <leader>q :bd<cr>
|
||||
map <leader>qq :q<cr>
|
||||
map <leader>w :w<cr>
|
||||
map <leader>g :NERDTreeToggle<cr>
|
||||
|
||||
"Return to last position when re-opening file
|
||||
autocmd BufReadPost *
|
||||
@@ -99,6 +100,7 @@ colorscheme monokai
|
||||
"change tabs with tab and shift-tab
|
||||
nnoremap <tab> gt
|
||||
nnoremap <S-tab> gT
|
||||
nnoremap <C-p> :CtrlP<cr>
|
||||
|
||||
autocmd BufWritePre * :%s/\s\+$//e
|
||||
|
||||
@@ -166,3 +168,7 @@ nnoremap <C-h> <C-w>h
|
||||
nnoremap <C-j> <C-w>j
|
||||
nnoremap <C-k> <C-w>k
|
||||
nnoremap <C-l> <C-w>l
|
||||
tnoremap <C-h> <C-w>h
|
||||
tnoremap <C-j> <C-w>j
|
||||
tnoremap <C-k> <C-w>k
|
||||
tnoremap <C-l> <C-w>l
|
||||
|
||||
@@ -19,15 +19,11 @@ Plugin 'gmarik/Vundle.vim'
|
||||
" plugin on GitHub repo
|
||||
" plugin from http://vim-scripts.org/vim/scripts.html
|
||||
Plugin 'tmhedberg/SimpylFold'
|
||||
Plugin 'rizzatti/dash.vim'
|
||||
Plugin 'vimwiki/vimwiki'
|
||||
Plugin 'mattn/calendar-vim'
|
||||
Plugin 'kien/ctrlp.vim'
|
||||
Plugin 'octol/vim-cpp-enhanced-highlight'
|
||||
Plugin 'mattn/emmet-vim'
|
||||
Plugin 'tpope/vim-surround'
|
||||
Plugin 'davidhalter/jedi-vim'
|
||||
Plugin 'leafgarland/typescript-vim'
|
||||
Plugin 'scrooloose/nerdtree'
|
||||
|
||||
" All of your Plugins must be added before the following line
|
||||
|
||||
Reference in New Issue
Block a user