This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if v:lang =~ "utf8$" || v:lang =~ "UTF-8$" | |
set fileencodings=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 | |
" Only do this part when compiled with support for autocommands | |
if has("autocmd") | |
augroup redhat | |
" In text files, always limit the width of text to 78 characters | |
autocmd BufRead *.txt set tw=78 | |
" When editing a file, always jump to the last cursor position | |
autocmd BufReadPost * | |
\ if line("'\"") > 0 && line ("'\"") <= line("$") | | |
\ exe "normal! g'\"" | | |
\ endif | |
augroup END | |
endif | |
if has("cscope") && filereadable("/usr/bin/cscope") | |
set csprg=/usr/bin/cscope | |
set csto=0 | |
set cst | |
set nocsverb | |
" add any database in current directory | |
if filereadable("cscope.out") | |
cs add cscope.out | |
" else add database pointed to by environment | |
elseif $CSCOPE_DB != "" | |
cs add $CSCOPE_DB | |
endif | |
set csverb | |
endif | |
" 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=ESC[4%dm | |
set t_Sf=ESC[3%dm | |
endif | |
"set ts=2 | |
set expandtab | |
set shiftwidth=2 | |
set softtabstop=2 | |
filetype off | |
call pathogen#infect() | |
call pathogen#helptags() | |
filetype plugin indent on | |
syntax on | |
set clipboard=unnamedplus | |
let g:indentLine_char = '|' | |
let g:indentLine_color_term = 239 | |
highlight Pmenu ctermfg=7 ctermbg=17 | |
highlight PmenuSel ctermfg=15 ctermbg=38 | |
colorscheme molokayo | |
"python3 from powerline.vim import setup as powerline_setup | |
"python3 powerline_setup() | |
"python3 del powerline_setup | |
let g:pymode_rope = 0 | |
"let g:pymode_python = 'python3' | |
" Documentation | |
let g:pymode_doc = 1 | |
let g:pymode_doc_key = 'K' | |
"Linting | |
let g:pymode_lint = 1 | |
let g:pymode_lint_checker = "pyflakes,pep8" | |
" Auto check on save | |
let g:pymode_lint_write = 1 | |
" Support virtualenv | |
let g:pymode_virtualenv = 1 | |
" Enable breakpoints plugin | |
let g:pymode_breakpoint = 1 | |
let g:pymode_breakpoint_bind = '<leader>b' | |
" syntax highlighting | |
let g:pymode_syntax = 1 | |
let g:pymode_syntax_all = 1 | |
let g:pymode_syntax_indent_errors = g:pymode_syntax_all | |
let g:pymode_syntax_space_errors = g:pymode_syntax_all | |
" Don't autofold code | |
let g:pymode_folding = 0 | |
" Ignore certain linter errors | |
let g:pymode_lint_ignore = 'E501' | |
let g:vim_json_syntax_conceal = 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment