preparation to work with putty-screen

This commit is contained in:
Vahagn Khachatryan
2013-10-02 17:30:49 +04:00
parent 4b93ac1861
commit 3183d154a5
2 changed files with 52 additions and 16 deletions

View File

@@ -17,7 +17,7 @@ set ruler " show the cursor position all the time
set tabstop=4 " make tabes to be equal to 4 space chars.
set shiftwidth=4 " for shifting by 4 when pressing tab.
set fileformat=unix " line ending is unix
"set textwidth=90 " 80 char text
set textwidth=80 " 80 char text
let g:netrw_preview = 1 " netrw open window to the right
let g:netrw_browse_split = 3 " open in a tab
@@ -36,8 +36,8 @@ 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
syntax on
set hlsearch
endif
" One such option is the 'hidden' option, which allows you to re-use the same
@@ -68,6 +68,16 @@ if exists('&number')
set number
endif
" Turn on spell check.
if exists("+spell")
set spell
endif
" Show 80th column.
if exists("+colorcolumn")
set colorcolumn=+1 " color textwidth+1-th line
endif
" Modelined are used to configure files.
if exists('&modeline')
set modeline
@@ -108,7 +118,7 @@ if has("autocmd")
au!
" For all text files set 'textwidth' to 78 characters.
autocmd FileType text setlocal textwidth=78
autocmd FileType text setlocal textwidth=79
" When editing a file, always jump to the last known cursor position.
" Don't do it when the position is invalid or when inside an event handler
@@ -189,14 +199,8 @@ if has("gui_running")
"set guifont=FreeMono:h12
set lines=50
set columns=85
if exists("+spell")
set spell
endif
set encoding=utf-8
"set fileencodings=utf-8
if exists("+colorcolumn")
set colorcolumn=+1 " color textwidth+1-th line
endif
if has("win32") || has("win64")
set guifont=Courier\ AM:h12
endif
@@ -218,5 +222,7 @@ if has("gui_running")
" Open file in a new tab.
map <silent> <C-F3> :browse tabnew %:p:h<CR>
else
colors evening
endif