If you open multiple files in vim with command line option. Then the only way to move between the files is “:n” and “:N”. There is a easier way to do this. Just add mappings for this in vimrc. Here is what you can use.
And if you want to make sure that you move to the prev or next file after saving the file, then you modifyt the mapping like this:
map <c-left> <Esc>:w|N<CR>
map <c-right> <Esc>:w|n<CR>
First of all, install symlinks if it is not installed :
sudo yum install symlinks
and here is the description:
Description : The symlinks utility performs maintenance on symbolic links.
: Symlinks checks for symlink problems, including dangling symlinks
: which point to nonexistent files. Symlinks can also automatically
: convert absolute symlinks to relative symlinks.
: Install the symlinks package if you need a program for maintaining
: symlinks on your system.
and the help for the same:
symlinks: scan/change symbolic links – v1.3 – by Mark Lord
Usage: symlinks [-cdorstv] dirlist
Flags: -c == change absolute/messy links to relative
-d == delete dangling links
-o == warn about links across file systems
-r == recurse into subdirs
-s == shorten lengthy links (displayed in output only when -c not specified)
-t == show what would be done by -c
-v == verbose (show all symlinks)
So, if you want to delete all the invalid symlinks in the current directory the just execute:
symlinks -d .
symlinks -d -r .
Here is a short description of pigz:
pigz, which stands for parallel implementation of gzip,
is a fully functional replacement for gzip that exploits
multiple processors and multiple cores to the hilt when compressing data.
And for the installation:
sudo yum install pigz
With pigz, if you don’t have many things running on your multi processor machine then you will see a significant improvement when you are gzipping the files.