Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- call plug#begin('~/.vim/plugged')
- Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
- Plug 'jiangmiao/auto-pairs'
- Plug 'kien/ctrlp.vim'
- Plug 'morhetz/gruvbox'
- call plug#end()
- colorscheme gruvbox
- set background=dark
- set nocompatible
- set bs=indent,eol,start
- "set backup
- set viminfo='20,\"50
- set ruler
- set ai
- set showmatch
- set vb
- set ruler
- set laststatus=2
- set backspace=indent,eol,start
- set nocompatible
- set background=dark
- set showmode
- set clipboard=unnamed
- syntax on
- set number
- set incsearch
- set hlsearch
- set ignorecase
- set smartcase
- set termencoding=utf8
- set nocompatible
- set showcmd
- set foldenable
- set foldlevel=100
- set foldmethod=indent
- set mouse=a
- set mousemodel=popup
- set hidden
- set guioptions-=T
- set ch=1
- set mousehide
- set autoindent
- set nowrap
- set expandtab
- set shiftwidth=4
- set softtabstop=4
- set tabstop=4
- set smartindent
- set showmatch
- set lines=50
- set columns=140
- set iskeyword=@,48-57,_,192-255
- set backspace=indent,eol,start
- set history=200
- set wildmenu
- set list listchars=tab:>\ ,trail:·
- filetype plugin on
- "mappings
- map <C-n> :NERDTreeToggle<CR>
- map <silent> <C-h> :call WinMove('h')<CR>
- map <silent> <C-j> :call WinMove('j')<CR>
- map <silent> <C-k> :call WinMove('k')<CR>
- map <silent> <C-l> :call WinMove('l')<CR>
- "function
- function! SuperCleverTab()
- if strpart( getline('.'), 0, col('.')-1 ) =~ '^\s*$'
- return "\<Tab>"
- else
- return "\<C-p>"
- endif
- endfunction
- function! WinMove(key)
- let t:curwin = winnr()
- exec "wincmd ".a:key
- if (t:curwin == winnr())
- if (match(a:key, '[jk];'))
- wincmd v
- else
- wincmd s
- endif
- exec "wincmd ".a:key
- endif
- endfunction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement