68 lines
1.8 KiB
VimL
68 lines
1.8 KiB
VimL
set nocompatible
|
|
filetype off
|
|
|
|
" set the runtime path to include Vundle and initialize
|
|
set rtp+=~/.vim/bundle/Vundle.vim
|
|
call vundle#begin()
|
|
" let Vundle manage Vundle, required
|
|
Plugin 'gmarik/Vundle.vim'
|
|
Plugin 'vim-airline/vim-airline'
|
|
Plugin 'kien/ctrlp.vim'
|
|
Plugin 'tpop/vim-fugitive'
|
|
Plugin 'scrooloose/nerdtree'
|
|
Plugin 'edkolev/tmuxline.vim'
|
|
Plugin 'vim-airline/vim-airline-themes'
|
|
Plugin 'godlygeek/tabular'
|
|
Plugin 'plasticboy/vim-markdown'
|
|
"Plugin 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'}
|
|
" All of your Plugins must be added before the following line
|
|
call vundle#end() " required
|
|
filetype plugin indent on " required
|
|
|
|
map <C-j> <C-W>j
|
|
map <C-k> <C-W>k
|
|
map <C-h> <C-W>h
|
|
map <C-l> <C-W>l
|
|
let NERDTreeShowHidden=1
|
|
set tabstop=4 softtabstop=0 expandtab shiftwidth=4 smarttab
|
|
colorscheme desert
|
|
syntax on
|
|
set splitright
|
|
set splitbelow
|
|
set number
|
|
"---------explorer------
|
|
let g:netrw_banner = 0
|
|
let g:netrw_liststyle = 3
|
|
let g:netrw_browse_split = 4
|
|
let g:netrw_altv = 1
|
|
let g:netrw_winsize = 25
|
|
"----airline tabs for buffers-------
|
|
let g:airline#extensions#tabline#enabled = 1
|
|
let g:airline_theme = 'dark'
|
|
let g:tmuxline_powerline_separators = 1
|
|
let g:airline_powerline_fonts = 1
|
|
"----markdown folding------------
|
|
let g:vim_markdown_folding_disabled = 1
|
|
"---general--------------------
|
|
let mapleader = ";"
|
|
set showcmd
|
|
map <Leader>a :bn<cr>
|
|
map <Leader>f :bp<cr>
|
|
map <Leader>d :bp<cr>:bd #<cr>
|
|
"---move the whole page without moving the cursor---
|
|
nnoremap J <C-E>
|
|
nnoremap K <C-Y>
|
|
"-----nerdtree--------------------
|
|
nmap <Leader>e :NERDTreeToggle<CR>
|
|
" Search as you type, highlight results
|
|
set incsearch
|
|
set showmatch
|
|
set hlsearch
|
|
nnoremap \\ :noh<cr> " Clear higlighting
|
|
"nnoremap <esc> :noh<return><esc>
|
|
" Resize windows
|
|
nnoremap <silent> <Up> 5<C-W>+
|
|
nnoremap <silent> <Down> 5<C-W>-
|
|
nnoremap <silent> <Right> 10<C-W>>
|
|
nnoremap <silent> <Left> 10<C-W><
|