Vim configuration file

Source: Internet
Author: User
Tags word wrap

Call Pathogen#infect () call Pathogen#helptags () Let g:syntastic_always_populate_loc_list = 1let G:syntastic_auto_jump = 1set Numberset encoding=utf-8 "wrap" set textwidth=80 "automatic line wrapping set Wrapnnoremap <C-J> <C-W><C-J>" Ctrl-j to Move down a split nnoremap <C-K> <C-W><C-K> ' ctrl-k to move ' up a split nnoremap <C-L> <c-w&gt ;<c-l> "Ctrl-l to move right a split nnoremap <C-H> <C-W><C-H>" ctrl-h to move left a split "will be used Ctrl+w hjkl in the window jump map to ctrl+hjkl jump window set Relativenumber "make vim display absolute line number to the current line, display the relative line number to other rows set numbers" Display line number set shortmess =alt " Do not show Uganda syntax Enablesyntax on "syntax highlighting set Mouse=a" set mouse available set Mouse=v "set mouse can right-set Mouse=iset NOCP" set compatible set nowrap "Set wrap-line Nnorem AP <F6> <esc>:w<cr>:!g++-std=c++11%-o/tmp/a.out &&/tmp/a.out<CR> "Run Nnoremap <f7 > <esc>:w<cr>:!g++-std=c++11%-o/tmp/a.out &&/tmp/a.out><cr> "compile" so that it can be displayed in a new window " Brackets Auto-Complete "" Inoremap (() <LEFT> "" Inoremap[[]<left> "" Inoremap {{}<left> "" Inoremap "" "<LEFT>" Inoremap "<LEFT>" Inoremap < < ><left>set backspace=indent,eol,startset autoindent "automatically indents set smartindent when new row is turned on" new row automatically aligns set ruler "show ruler set Splitbelowset splitrightset nocompatible "Remove VI consistency set cindent" Turn on C syntax check set cursorline "Cursor line color settings set Cursorcolumn" cursor element settings hi Cursorline cterm=none ctermbg=darkgray Ctermfg=nonehi cursorcolumn cterm=none ctermbg=darkgray ctermfg=NONEset laststatus=2 "Show status bar set si" Auto indent set Showmatch "code match set Expandtab set Shiftwidth=4set tabstop=4" set tab and indent spaces "setting HLS" search highlighting Match IMAP {{}<esc>i<cr><esc>o<tab><backspace> "compatible with PEP8 standard to prevent conflicts with others on GitHub set tabstop= 4set softtabstop=4set shiftwidth=4set textwidth=80 "can set word wrap, only valid in English set Expandtabset autoindentset fileformat=unixset Statusline=formatset statusline=[Path =%f]/[modified =%m]/[read-only%r]/%h[preview window =%w]/[format=%{&ff}]/[buffer file type =%y]/[ascii=/%0 3.3b]/[hex=/%02.2b]/[pos=%04l,%04v][%p%%]/[Buffer Row Count =%l]/time:%-16{strftime (\ "%y-%m-%d\%H:%m\ ")}" "Status bar set Hi statusline ctermfg=darkred ctermbg=bluehi statuslinenc ctermfg=blue ctermbg=black" ColorScheme    Darkblue "can view optional set nocompatible" be improved in/usr/share/vim/vim74/colors/, Requiredfiletype Onfiletype Plugin on "required" set the runtime path to include Vundle and Initializeset Rtp+=~/.vim/bundle/vundle.vimcall vundle#be Gin () "Alternatively, pass a path where vundle should install plugins" Call Vundle#begin (' ~/some/path/here ') "Let Vundle ma Nage vundle, Requiredplugin ' Vundlevim/vundle.vim ' "Here is the comment on the installation status bar plugin ' Bling/vim-airline '" Here is the folder bar on the left of the installation plugin ' Xuyuanp/nerdtree-git-plugin ' plugin ' tpope/vim-fugitive ' plugin ' git://git.wincent.com/command-t.git ' plugin ' Valloric/youcompleteme ' Plugin ' vim-ctrlspace/vim-ctrlspace ' "Here is the installation directory tree Plugin ' scrooloose/nerdtree ' autocmd VimEnter * Nerdtreelet nerdtreeshowbookmarks=2set hidden "The NERD tree" F3 trigger, set width to 30, display bookmark map <F3>: NERDTREETOGGLE&LT;CR >let nerdtreewinsize = 30let Nerdtreeshowbookmarks = 1 "Highlight Current line let NerdtreehigHlightcursorline = 1 "Auto close after opening file from Nerdtree nerdtreelet Nerdtreequitonopen = 1" Show hidden file Let G:nerdtreeshowhidden = 1 " Ignore specific files and directories let nerdtreeignore=[' \.pyc$ ', ' \.pyo$ ', ' \.py\ $class $ ', ' \.obj$ ', ' \.o$ ', ' \.so$ ', ' \.egg$ ', ' ^\.gi ' t$ ', ' __pycache__ ', ' \. Ds_store '] "Display line number let Nerdtreeshowlinenumbers = 1let Nerdtreeautocenter = 1map <F3>: nerdtreetoggle<cr>bundle ' raimondi/delimitmate ' filetype plugin indent on "required" to ignore plugin indent changes, instead use: "FileType plug In on "Brief Help":P luginlist-lists configured plugins ":P Lugininstall-installs plugins; Append '! ' to update or just:P luginupdate ":P luginsearch foo-searches for foo; Append '! ' to refresh local cache ':P luginclean-confirms removal of unused plugins; Append '! ' to Auto-approve removal "" See:h vundle for more details or wiki for FAQ "Put your non-plugin stuff after this Line "Let g:ycm_global_ycm_extra_conf= ' ~/.vim/bundle/youcompleteme/third_party/ycmd/cpp/ycm/.ycm_extra_conF.py ' "Here is the event callback to add the header file function! Autosetshfilehead () If expand ("%:e") = = "sh" call append (1, "\#!/bin/bash") endif normal G normal oendfun cfunction! Autosetpyfilehead () If expand ("%:e") = = "py" Call Append (1, "\#!usr/bin/python3") call Append (2, "\# Encodi Ng:utf-8 ") endif normal G normal oendfuncfunc! SetHeader () If expand ("%:e") = = "CPP" Call Setline (1, "#include <iostream>") Call Setline (2, "Using NA        Mespace std; ") Call Setline (3, "int main") Call Setline (4, "{") Call Setline (5, "}") endif normal G normal Oendfuncau Tocmd bufnewfile *.sh Exec ": Call Autosetshfilehead ()" Autocmd bufnewfile *.py Exec ": Call Autosetpyfilehead ()" Autocmd Buf NewFile *.cpp Exec ": Call SetHeader ()" FileType offset rtp+=~/.vim/bundle/vundle.vimplugin ' altercation/ Vim-colors-solarized ' Plugin ' Tomasr/molokai ' Plugin ' Vim-scripts/phd ' Plugin ' lokaltog/vim-powerline ' Plugin ' octol/ Vim-cpp-enhanced-highlight ' Plugin ' Nathanaelkane/vim-indeNt-guides ' "with vim self-start let g:indent_guides_enable_on_vim_startup=1" from the second layer to visualize the indentation to show g:indent_guides_start_level=2 " Color block Width Let g:indent_guides_guide_size=1 "shortcut I on/off indent visualization: Nmap <silent> <leader>i <Plug> Indentguidestoggleplugin ' Derekwyatt/vim-fswitch ' Plugin ' kshenoy/vim-signature ' Plugin ' vim-scripts/ Bookmarks--mark-and-highlight-full-lines ' Plugin ' majutsushi/tagbar ' Plugin ' vim-scripts/indexer.tar.gz ' Plugin ' Vim-scripts/dfrankutil ' Plugin ' vim-scripts/vimprj ' Plugin ' dyng/ctrlsf.vim ' Plugin ' terryma/vim-multiple-cursors ' Plugin ' scrooloose/nerdcommenter ' Plugin ' vim-scripts/drawit ' Plugin ' sirver/ultisnips ' Plugin ' derekwyatt/ Vim-protodef ' Plugin ' fholgado/minibufexpl.vim ' Plugin ' gcmt/wildfire.vim ' Plugin ' sjl/gundo.vim ' Plugin ' lokaltog/ Vim-easymotion ' Plugin ' suan/vim-instant-markdown ' Plugin ' Lilydjwg/fcitx.vim ' call Vundle#end () filetype Plugin indent On "Here is Haskell's plugin library let G:haskell_enable_quantification=1" to enable highlighting of ' forall ' let G:haskell_enable_ Recursivedo=1 "to EnablE highlight of ' mdo ' and ' rec ' let g:haskell_enable_arrowsyntax=1 "to enable highlight of ' proc ' let G:haskell_enable_patter  N_synonyms=1 "To enable highlighting of the pattern ' let G:haskell_enable_typeroles=1" to enable highlighting of type Roleslet G:haskell_enable_static_pointers=1 "To enable highlighting of ' static ' let g:haskell_enable_backpack=1" to enable Highlighting of Backpack keywords

Vim configuration file

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.