VIM Syntax highlighting not functioning -


i new vim , trying syntax highlighting in place. made , edited vimrc file , when @ file colored. when go python files have no highlighting. great!

l: http://vim.wikia.com/wiki/example_vimrc " authors: http://vim.wikia.com/wiki/vim_on_freenode " description: minimal, feature rich, example .vimrc. if "              newbie, basing first .vimrc on file choice. "              if you're more advanced user, building own .vimrc based "              on file still idea.  "------------------------------------------------------------ " features {{{1 " " these options , commands enable useful features in vim, " no user should have live without.  " set 'nocompatible' ward off unexpected things distro might " have made, sanely reset options when re-sourcing .vimrc set nocompatible  " attempt determine type of file based on name , possibly " contents. use allow intelligent auto-indenting each filetype, " , plugins filetype specific. filetype indent plugin on  " enable syntax highlighting syntax on   "------------------------------------------------------------ " must have options {{{1 " " these highly recommended options.  " vim default settings not allow easy switching between multiple files " in same editor window. users can use multiple split windows or multiple " tab pages edit multiple files, still best enable option " allow easier switching between files. " " 1 such option 'hidden' option, allows re-use same " window , switch unsaved buffer without saving first. allows " keep undo history multiple files when re-using same window " in way. note using persistent undo lets undo in multiple " files in same window, less efficient , designed " keeping undo history after closing vim entirely. vim complain if " try quit without saving, , swap files keep safe if computer " crashes. set hidden  " note not likes working way (with hidden option). " alternatives include using tabs or split windows instead of re-using same " window mentioned above, and/or either of following options: " set confirm " set autowriteall  " better command-line completion set wildmenu  " show partial commands in last line of screen set showcmd  " highlight searches (use <c-l> temporarily turn off highlighting; see " mapping of <c-l> below) set hlsearch  " modelines have historically been source of security vulnerabilities. " such, may idea disable them , use securemodelines " script, <http://www.vim.org/scripts/script.php?script_id=1876>. " set nomodeline   "------------------------------------------------------------ " usability options {{{1 " " these options users set in .vimrc. of them " change vim's behaviour in ways deviate true vi way, " considered add usability. which, if any, of these options " use personal preference, harmless.  " use case insensitive search, except when using capital letters set ignorecase set smartcase  " allow backspacing on autoindent, line breaks , start of insert action set backspace=indent,eol,start  " when opening new line , no filetype-specific indenting enabled, keep " same indent line you're on. useful readmes, etc. set autoindent  " stop movements going first character of line. " while behaviour deviates of vi, users " coming other editors expect. set nostartofline  " display cursor position on last line of screen or in status " line of window set ruler  " display status line, if 1 window displayed set laststatus=2  " instead of failing command because of unsaved changes, instead raise " dialogue asking if wish save changed files. set confirm  " use visual bell instead of beeping when doing wrong set visualbell  " , reset terminal code visual bell. if visualbell set, , " line included, vim neither flash nor beep. if visualbell " unset, nothing. set t_vb=  " enable use of mouse modes set mouse=a  " set command window height 2 lines, avoid many cases of having " "press <enter> continue" set cmdheight=2  " display line numbers on left set number  " time out on keycodes, never time out on mappings set notimeout ttimeout ttimeoutlen=200  " use <f11> toggle between 'paste' , 'nopaste' set pastetoggle=<f11>   "------------------------------------------------------------ " indentation options {{{1 " " indentation settings according personal preference.  " indentation settings using 2 spaces instead of tabs. " not change 'tabstop' default value of 8 setup. set shiftwidth=2 set softtabstop=2 set expandtab  " indentation settings using hard tabs indent. display tabs " 2 characters wide. "set shiftwidth=2 "set tabstop=2   "------------------------------------------------------------ " mappings {{{1 " " useful mappings  " map y act d , c, i.e. yank until eol, rather act yy, " default map y y$  " map <c-l> (redraw screen) turn off search highlighting until " next search nnoremap <c-l> :nohl<cr><c-l>   "------------------------------------------------------------ 

file in in location of : /home/pi

solved, using sudo launch vim , referencing vimrc


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -