Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "" commentry Plugin
- "" kana/vim-textobj-entire
- :set nocompatible
- filetype off
- set rtp+=~/.vim/bundle/Vundle.vim
- call vundle#begin()
- Plugin 'liuchengxu/space-vim-dark'
- Plugin 'VundleVim/Vundle.vim'
- Plugin 'scrooloose/nerdtree'
- Plugin 'bling/vim-airline'
- Plugin 'vim-airline/vim-airline-themes'
- Plugin 'tpope/vim-fugitive'
- Plugin 'airblade/vim-gitgutter'
- Plugin 'ervandew/supertab'
- Plugin 'tmhedberg/SimpylFold'
- Plugin 'majutsushi/tagbar'
- Plugin 'terryma/vim-multiple-cursors'
- Plugin 'Shougo/neocomplete'
- Plugin 'Yggdroot/indentLine'
- Plugin 'vim-scripts/AutoComplPop'
- Plugin 'tpope/vim-surround'
- Plugin 'mattn/emmet-vim'
- Plugin 'lepture/vim-jinja'
- Plugin 'tpope/vim-markdown'
- Plugin 'w0rp/ale'
- Plugin 'nvie/vim-flake8'
- Plugin 'vim-syntastic/syntastic'
- Plugin 'plytophogy/vim-virtualenv'
- Plugin 'junegunn/goyo.vim'
- Plugin 'junegunn/limelight.vim'
- Plugin 'tpope/vim-unimpaired'
- Plugin 'vim-latex/vim-latex'
- "Plugin 'maxbrunsfeld/vim-yankstack'
- "Plugin 'glench/vim-jinja2-syntax'
- "Plugin 'fatih/vim-go'
- "Plugin 'mileszs/ack.vim' "Ack [options] {pattern} [{directories}]
- "Plugin 'nginx.vim'
- "Plugin 'scrooloose/nerdcommenter'
- "Plugin 'peterhoeg/vim-qml'
- "Plugin 'kien/ctrlp.vim'
- call vundle#end()
- :colorscheme space-vim-dark
- :set number
- :set ls=2
- :filetype plugin on
- :set tabstop=2
- :set expandtab
- :set softtabstop=2
- :set shiftwidth=2
- :setlocal foldmethod=indent
- :set foldlevel=99
- :set nowrap
- :set nocp
- :set clipboard=unnamed
- :set clipboard=unnamedplus
- :set autoindent
- :set cindent
- :set si
- :syntax enable
- :set showmatch
- :set hlsearch
- :set ignorecase
- :set noswapfile
- :set mouse=a
- :set t_Co=256
- :set wildmenu
- :set cursorline
- :set lazyredraw
- :set encoding=utf-8
- " tab stop
- " for html files, 2 spaces
- autocmd Filetype html setlocal ts=2 sw=2 expandtab
- "for js/python/go
- autocmd Filetype javascript setlocal ts=4 sw=4 sts=0 expandtab
- autocmd Filetype python setlocal ts=4 sw=4 expandtab
- autocmd Filetype go setlocal ts=4 sw=4 expandtab
- "enable folding with the spacebar
- noremap <space> za
- " auto complete for ( , ", ' [ , {
- :inoremap ( ()<Left>
- :inoremap " ""<Left>
- :inoremap ` ``<Left>
- :inoremap ' ''<Left>
- :inoremap [ []<Left>
- :inoremap { {}<Left>
- " auto comment and uncooment with F6 and F7 key
- :autocmd FileType c,cpp,java,scala let b:comment_leader = '// '
- :autocmd FileType sh,ruby,python let b:comment_leader = '# '
- :noremap <silent> #6 :<C-B>silent <C-E>s/^/<C-R>=escape(b:comment_leader,'\/')<CR>/<CR>:nohlsearch<CR>
- :noremap <silent> #5 :<C-B>silent <C-E>s/^\V<C-R>=escape(b:comment_leader,'\/')<CR>//e<CR>:nohlsearch<CR>
- " tab switch
- " F2 nxt F3 prev
- :noremap <silent> #3 :bp<CR>
- :noremap <silent> #4 :bn<CR>
- " Paste mode toggle with F2 Pastemode disable auto-indent and bracket auto-compelation and it helps you to paste code fro elsewhere .
- :set pastetoggle=<F2>
- " clear the search with C-l
- :noremap <silent> <C-l> :<C-u>nohlsearch<CR><C-l>
- " spell
- :noremap <silent> <F12> :setlocal spell spelllang=en_us<CR>
- :noremap <silent> <F10> :set nospell<CR>
- "Plugin
- " NERDTree plugin setting
- :map <F9> :NERDTreeToggle<CR> " toggle showing NERDTree
- "open a NERDTree automatically when vim starts up if no files were specified
- :autocmd StdinReadPre * let s:std_in=1
- :autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
- :autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif " close vim if the only window left open is a NERDTree
- "ignore files on NERDTree
- let NERDTreeIgnore=['\.pyc$', '\~$']
- "airline
- " airline plugin setting
- :let g:airline_theme='minimalist'
- :let g:airline#extensions#tabline#enabled = 1 " showing tabs
- :let g:airline_powerline_fonts = 1
- if !exists('g:airline_symbols')
- let g:airline_symbols = {}
- endif
- " unicode symbols
- let g:airline_left_sep = '»'
- let g:airline_left_sep = '▶'
- let g:airline_right_sep = '«'
- let g:airline_right_sep = '◀'
- "neocompl
- "tag bar
- nmap <F8> :TagbarToggle<CR>
- "markdown
- autocmd BufNewFile,BufReadPost *.md set filetype=markdown
- let g:markdown_fenced_languages = ['html', 'python', 'bash=sh']
- let g:markdown_syntax_conceal = 0
- "multiple cursors
- let g:multi_cursor_use_default_mapping=0
- "Default mapping
- let g:multi_cursor_next_key='<C-n>'
- let g:multi_cursor_prev_key='<C-p>'
- let g:multi_cursor_skip_key='<C-x>'
- let g:multi_cursor_quit_key='<Esc>'
- " Map start key separately from next key
- let g:multi_cursor_start_key='<C-n>'
- let g:multi_cursor_start_word_key='g<C-n>'
- let g:multi_cursor_quit_key='<C-c>'
- " supertab
- let g:SuperTabDefaultCompletionType='<C-n>'
- " indent
- let g:indentLine_char = '┆'
- highlight ColorColumn ctermbg=white
- call matchadd("ColorColumn", '\%81v', 100)
- nnoremap <C-c> :call multiple_cursors#quit()<CR>
- " jinja
- au BufNewFile,BufRead *.html,*.htm,*.shtml,*.stm set ft=jinja
- " emmet
- " only for html and css
- let g:user_emmet_install_global = 0
- autocmd FileType html,css,md EmmetInstall
- "syntastic
- let python_highlight_all=1
- syntax on
- "SimpylFold
- let g:SimpylFold_docstring_preview=1
- " split nav
- " split pos
- set splitbelow
- set splitright
- " resize panes
- nnoremap <silent> <Leader>+ :exe "resize " . (winheight(0) * 3/2)<CR>
- nnoremap <silent> <Leader>- :exe "resize " . (winheight(0) * 2/3)<CR>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement