How do I write a file without the line feed (EOL) at the end of the file?
‘eol’ option and turn on the ‘binary’ option to write a file without the EOL at the end of the file: :set binary :set noeol :w For more information, read :help ‘endofline’ :help ‘binary’ :help 23.4 5.5. How do I configure Vim to open a file at the last edited location? Vim stores the cursor position of the last edited location for each buffer in the ‘”‘ register. You can use the following autocmd in your .vimrc or .gvimrc file to open a file at the last edited location: au BufReadPost * if line(“‘\””) > 0 && line(“‘\””) <= line("$") | \ exe "normal g'\"" | endif For more information, read :help '" :help last-position-jump 5.6. When editing a file in Vim, which is being changed by an external application, Vim opens a warning window (like the confirm dialog) each time a change is detected. How do I disable this warning? You can set the 'autoread' option to configure Vim to automatically read the file again when it is changed outside of Vim: :set autoread You can also use the following au