diff options
author | dx <aryadevchavali1@gmail.com> | 2020-04-24 02:35:01 +0100 |
---|---|---|
committer | dx <aryadevchavali1@gmail.com> | 2020-04-24 02:35:01 +0100 |
commit | 094087893a66b250da1c97608c31c6b521c90153 (patch) | |
tree | 00f618274d6c765b65d3495e51cd8dc963e5b795 /vim | |
parent | ee1220ccfb1e77e07f4c80121c1b383630025f74 (diff) | |
download | dotfiles-094087893a66b250da1c97608c31c6b521c90153.tar.gz dotfiles-094087893a66b250da1c97608c31c6b521c90153.tar.bz2 dotfiles-094087893a66b250da1c97608c31c6b521c90153.zip |
~Moved all files to respective folders for gnu stow
Diffstat (limited to 'vim')
-rw-r--r-- | vim/.vimrc | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/vim/.vimrc b/vim/.vimrc new file mode 100644 index 0000000..27b35f4 --- /dev/null +++ b/vim/.vimrc @@ -0,0 +1,105 @@ +filetype off + +"" Plugins +set rtp+=~/.vim/bundle/Vundle.vim + +call vundle#begin() + "" Core +Plugin 'gmarik/Vundle.vim' +Plugin 'tpope/vim-dispatch' +Plugin 'SirVer/ultisnips' +Plugin 'honza/vim-snippets' +Plugin 'christoomey/vim-tmux-navigator' + + "" UI +Plugin 'scrooloose/nerdtree' + + "" Plugins +Plugin 'godlygeek/tabular' +Plugin 'tpope/vim-commentary' +Plugin 'tpope/vim-fugitive' +Plugin 'tpope/vim-surround' +call vundle#end() + + +"" Standard variables +syntax enable +filetype plugin indent on +set nocompatible +set ignorecase +set smartcase +set clipboard=unnamed +set number +set nobackup +set noundofile +set nowritebackup +set nohlsearch +set wildmenu +set tabstop=4 +set softtabstop=4 +set expandtab +set shiftwidth=4 +set previewheight=5 +set foldmethod=syntax +set foldlevel=99 +set path+=** +let mapleader = ' ' + + +"" Theming +colorscheme elflord + + +"" Dir Config +let g:NERDTreeHijackNetrw = 1 + + +"" Keybinds +imap jk <Esc> + "" General keybind +nnoremap <leader>fp :e ~/.vimrc<CR> +nnoremap <leader>fei :e ~/.vim/ftplugin<CR> +nnoremap <leader>fr :so ~/.vimrc<CR>:PluginInstall<CR>:PluginClean<CR> +nnoremap <leader>qq :q!<CR> +nnoremap <leader>gs :G<CR> +nnoremap <leader><leader> : + + "" File Management +nnoremap <leader>ff :e +nnoremap <leader>fs :w<CR> +nnoremap <leader>fq :wq<CR> +nnoremap <leader>fn :enew<CR> +nnoremap <F8> :set hlsearch! hlsearch?<CR> + + "" Buffer Management +nnoremap <leader>bb :b +nnoremap <leader>bn :bn <CR> +nnoremap <leader>bp :bp <CR> +nnoremap <leader>bd :bd <CR> + + "" Search +nnoremap <leader>ss / + + "" Window Splits +nnoremap <leader>wv <C-W>v +nnoremap <leader>ws <C-W>s +nnoremap <leader>wd <C-W>q + + "" Window Resizes +nnoremap <leader>wj :resize -5<CR> +nnoremap <leader>wk :resize +5<CR> +nnoremap <leader>wl <C-W>5> +nnoremap <leader>wh <C-W>5< + + "" Window Movement +nnoremap <leader>j <C-W><C-J> +nnoremap <leader>k <C-W><C-K> +nnoremap <leader>l <C-W><C-L> +nnoremap <leader>h <C-W><C-H> + + "" Projects +nnoremap <leader>ot :NERDTreeToggle<CR> +nnoremap <leader>pg :!ctags-exuberant -R --exclude=Makefile . + + "" Tags +nnoremap <leader>tt :Tags<CR> |