Last active
March 7, 2018 05:21
-
-
Save nobucshirai/6486963709a6f82babb02df287f9276d to your computer and use it in GitHub Desktop.
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
"------------------------------------------------ | |
"表示関係 | |
"------------------------------------------------ | |
syntax on | |
"カラースキーマ | |
colorscheme desert | |
highlight fortranTab ctermfg=0 | |
highlight fortranOperator ctermfg=5 | |
highlight Number ctermfg=white | |
highlight LineNr ctermfg=white | |
highlight Comment ctermfg=6 | |
highlight vimFold ctermfg=white | |
highlight FoldColumn ctermfg=white | |
highlight Folded ctermfg=1 | |
set number | |
set title | |
"------------------------------------------------ | |
"入力関係 | |
"------------------------------------------------ | |
set autoindent | |
set backspace=2 | |
set tabstop=4 | |
set shiftwidth=4 | |
"set expandtab "HTML MODE | |
"カーソルを行頭、行末で止まらないようにする | |
set whichwrap=b,s,h,l,<,>,[,] | |
set textwidth=0 | |
set formatoptions=q | |
"------------------------------------------------ | |
"検索関係 | |
"------------------------------------------------ | |
set hlsearch | |
set incsearch | |
set wrapscan | |
set ignorecase | |
set smartcase | |
"折り畳み | |
set foldmethod=indent | |
"------------------------------------------------ | |
"Escape入力待ち時間を短くする | |
"set timeoutlen=1 | |
set timeoutlen=200" | |
"設定の保存と復元 | |
autocmd FileType python setl autoindent | |
autocmd FileType python setl smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class | |
"autocmd FileType python setl tabstop=8 expandtab shiftwidth=4 softtabstop=4 | |
"autocmd FileType html setl autoindent smartindent | |
"autocmd FileType html setl tabstop=8 expandtab shiftwidth=4 softtabstop=4 | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment