Come again? I'm pretty sure it's supposed to work with both.tzoi516 said:In vi I canwq!
to override saving to a read-only file. However, in gvim I can't.
I think is should too - Shift+; gives me the prompt. However, in gvim I can't. I think there's a group/process setting that vi might have that gvim doesn't.fonz said:Come again? I'm pretty sure it's supposed to work with both.
:set nocp
set number - line numbers on the side
set tabstop=<num> - number of columns a tab represents
set shiftwidth - how much to indent when pressing tab (optionally use set expansion to expand tabs to spaces); should be the same as tabstop unless you know what you're doing
set smartindent - auto indent when hitting enter
syntax on - turn on syntax highlighting
colo <theme> - syntax color theme
tzoi516 said:I created a ~/.vimrc file [...]. I found a lot of people customize that file, so I'm wading through a few to see what helps.
Here's what I have in my ~/.vimrc:tzoi516 said:I found a lot of people customize that file, so I'm wading through a few to see what helps.
" Fonz's .vimrc file - enjoy!
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Indentation
"
" autoindent/smartindent alone copies indent from previous line
" %retab! replaces tabs with spaces on crappily formatted code
" Ctrl-T/D adds/removes indent levels
filetype indent on
syntax on
set expandtab
set shiftwidth=2
set textwidth=80
set cc=+1
"set autoindent
" Automagic reading/writing of modified files
set noautoread
set noautowrite
set noautowriteall
" Additional options for GUI version
if has("gui_running")
set browsedir=last
endif
" Disable annoying as hell mapping of F1 to help
nmap <F1> <nop>
" Miscellaneous behaviour, mostly self-explanatory
set backspace=eol,indent,start
set nobackup
set cmdheight=1
set ruler
colorscheme fonz
autocmd Filetype mail set textwidth=74
set guifont=Terminus\ 10
set cursorcolumn
set cursorline
colorscheme fonz