Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if v:lang =~ "utf8$" || v:lang =~ "UTF-8$"
- set fileencodings=ucs-bom,utf-8,latin1
- endif
- set nocompatible " Use Vim defaults (much better!)
- set bs=indent,eol,start " allow backspacing over everything in insert mode
- "set ai " always set autoindenting on
- "set backup " keep a backup file
- set viminfo='20,\"50 " read/write a .viminfo file, don't store more
- " than 50 lines of registers
- set history=50 " keep 50 lines of command line history
- set ruler " show the cursor position all the time
- " Switch syntax highlighting on, when the terminal has colors
- " Also switch on highlighting the last used search pattern.
- if &t_Co > 2 || has("gui_running")
- syntax on
- set hlsearch
- endif
- if &term=="xterm"
- set t_Co=8
- set t_Sb=[4%dm
- set t_Sf=[3%dm
- endif
- " Don't wake up system with blinking cursor:
- " http://www.linuxpowertop.org/known.php
- let &guicursor = &guicursor . ",a:blinkon0"
- set colorcolumn=80 textwidth=79
- set number
- set langmap=ё`йqцwуeкrеtнyгuшiщoзpх[ъ]фaыsвdаfпgрhоjлkдlж\\;э'яzчxсcмvиbтnьmб\\,ю.Ё~ЙQЦWУEКRЕTНYГUШIЩOЗPХ{Ъ}ФAЫSВDАFПGРHОJЛKДLЖ:Э\\"ЯZЧXСCМVИBТNЬMЮ>Б<
- set pastetoggle=<F3>
- set listchars=tab:»»,trail:·,nbsp:~,eol:$
- nnoremap th :tabfirst<CR>
- nnoremap tj :tabnext<CR>
- nnoremap tk :tabprev<CR>
- nnoremap tl :tablast<CR>
- nnoremap tn :tabnew<Space>
- nnoremap td :tabclose<CR>
- " Highlight trailing whitespaces
- highlight ExtraWhitespace ctermbg=red guibg=red
- match ExtraWhitespace /\s\+$/
- colorscheme desert
- " In C++, do not indent public/private/protected keywords
- set cino=g0
- " C-l to nohl
- nnoremap <silent> <C-l> :nohl<CR><C-l>
- " load rules from the cwd
- set exrc
- set tabpagemax=150
- """ VUNDLE
- filetype off
- set rtp+=~/.vim/bundle/Vundle.vim
- call vundle#begin()
- Plugin 'VundleVim/Vundle.vim'
- Plugin 'editorconfig/editorconfig-vim'
- Plugin 'stfl/meson.vim'
- Plugin 'tmux-plugins/vim-tmux'
- Plugin 'rking/ag.vim'
- call vundle#end()
- filetype plugin indent on
- """ /VUNDLE
- " configure ag.vim
- nnoremap ta :Ag "\b<C-R><C-W>\b"<CR>:cw<CR>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement