Thiago de Arruda
d8055f8eab
normal: Fix code style in normal_prepare
and normal_execute
...
This was done separately to make it easier to follow the changes in the previous
commit.
2015-10-26 10:52:01 -03:00
Thiago de Arruda
82bb8c887c
normal: Extract most normal_cmd
logic into two functions
...
The new functions are `normal_prepare` and `normal_execute` which contain code
executed before and after input is received in normal mode.
2015-10-26 10:52:01 -03:00
Thiago de Arruda
dae006a942
main: Extract normal_check
from main_loop
...
The new function contains logic that must be executed after handling input in
normal mode and also before the first main loop iteration. Also rename
`main_loop` to `normal_enter` and move it to normal.c
2015-10-26 10:52:01 -03:00
ZyX
be6b784766
option: Fix strange condition in add_dir function
2015-10-26 14:51:56 +03:00
ZyX
89a84baaf9
option: Fix typos that may lead to SEGV in some cases
2015-10-26 14:49:03 +03:00
Justin M. Keyes
0f9dea2a0e
vim-patch:7.4.849
...
Problem: Moving the cursor in Insert mode starts new undo sequence.
Solution: Add CTRL-G U to keep the undo sequence for the following
cursor movement command. (Christian Brabandt)
8b5f65a527
Closes #3492
2015-10-26 02:23:59 -04:00
Justin M. Keyes
1ca5646bb5
Merge pull request #3470 from ZyX-I/pr-3198
...
XDG base directory specification support
2015-10-25 22:38:23 -04:00
ZyX
157af47202
os/unix_defs: Rename default system vimrc file to sysinit.vim
...
This way all standard Vim file paths have .vim extension. VIMRC_FILE constant
used for &exrc option was not touched.
2015-10-24 04:35:14 +03:00
ZyX
2b437e7102
main: Check init.vim files also in other XDG directories
2015-10-24 04:35:13 +03:00
ZyX
95979afc47
oldtests: Also set .
as default directories for old tests
2015-10-23 17:04:26 +03:00
ZyX
ca6235c20f
*: Fix linter errors
2015-10-23 15:56:50 +03:00
ZyX
a8e18d9b5a
memline: Automatically create swap file directory for last directory
2015-10-23 15:56:50 +03:00
ZyX
fefcc01cc1
os/fs: Allow os_mkdir_recurse directory name to end with ///
2015-10-23 14:54:11 +03:00
ZyX
030c608b7d
option: Use memcnt for counting commas
2015-10-23 14:54:11 +03:00
ZyX
198ba323b8
stdpaths: Remove outdated comment
2015-10-23 14:54:11 +03:00
ZyX
25bb9c9f7d
option: Silence “may be used unitialized” errors
2015-10-23 14:54:11 +03:00
ZyX
181c377697
stdpaths: Add Windows-specific directories
2015-10-23 14:54:11 +03:00
ZyX
d2e07c8307
stdpaths: Add missing include
2015-10-23 14:54:11 +03:00
ZyX
8642bad122
shada: Remove SHADA_FILE2
2015-10-23 14:54:11 +03:00
ZyX
fee3c32048
stdpaths: Remove Apple defaults, use \*nix ones instead
2015-10-23 14:54:11 +03:00
ZyX
afcc842881
main,version: Remove USR_EXRC_FILE*
2015-10-23 14:54:11 +03:00
ZyX
a82a059921
option: Add //
to the end of default &directory
2015-10-23 14:54:11 +03:00
ZyX
aadaa1fed4
stdpaths: Add documentation
2015-10-23 14:54:11 +03:00
ZyX
89a10b3e7c
main,os/env: Fix lint errors
2015-10-23 14:54:11 +03:00
ZyX
2018389871
option: Remove new trailing spaces
2015-10-23 14:54:10 +03:00
ZyX
d1ed658c44
option: Do not add unneeded path separator, protect against zero len
2015-10-23 14:54:10 +03:00
ZyX
86a6ff7b9d
option: Move macros to functions, use PATHSEP in place of /
2015-10-23 14:54:10 +03:00
ZyX
1cdc3298cf
documentation: Update documentation
...
Note about ~/.local/share/nvim/site used in one usr_\* file: this one talks
about user-local installation of third-party plugins, and
~/.local/share/nvim/site is the proper place for them. Most other files talk
about user own configuration and this is ~/.config.
2015-10-23 14:54:10 +03:00
ZyX
a1b0f4073d
stdpaths: Do NOT create data directories
...
This is none of option.c business to create *possibly unneeded* **default**
directories **before** user specified where he actually wants to place the
files.
2015-10-23 14:54:10 +03:00
ZyX
a06a8bad60
stdpaths: Give proper error message in case directory creation failed
2015-10-23 14:54:10 +03:00
ZyX
2e750973e9
shada: Move shada file to a new location
2015-10-23 14:54:10 +03:00
ZyX
502a20a8fe
stdpaths,main: Remove all remaining memory leaks
2015-10-23 14:54:10 +03:00
ZyX
0a59c969cc
option: Use proper printexpr
2015-10-23 14:54:10 +03:00
ZyX
642a07ce27
option: Remove some memory leaks
2015-10-23 14:54:10 +03:00
ZyX
be91bc1e1a
stdpaths: Export get_xdg function (renamed) and use it for runtimepath
2015-10-23 14:54:10 +03:00
ZyX
afb0f2f9b1
stdpaths: Rename export functions so that they have common prefix
2015-10-23 14:54:10 +03:00
ZyX
120ec8c2ea
stdpaths: Remove useless functions get_user_*_dir
2015-10-23 14:54:09 +03:00
ZyX
1db5a807b2
stdpaths: Fix some issues, specifically
...
- Remove/add includes
- Do not pretend that returns are const
- Add function attributes
- Allocate memory always in get_xdg
2015-10-23 14:54:09 +03:00
ZyX
8e2c0fdba5
option: Append with escaped commas
2015-10-23 14:54:09 +03:00
ZyX
ab2944f46c
option: Prepare for all environment variables being NULL.
2015-10-23 14:54:09 +03:00
ZyX
ee95f818a6
option: Move all data directories after all config directories
2015-10-23 14:54:09 +03:00
ZyX
efb6045a00
option: Add /site subdirectory to data directories
2015-10-23 14:54:09 +03:00
ZyX
76e2788d87
option: Use different default value for &runtimepath
2015-10-23 14:54:09 +03:00
ZyX
674629be0c
os/env: Add functions that can iterate over colon-separated variables
2015-10-23 14:54:09 +03:00
Keerthan Jaic
c2dd07448f
option,main: Partial support of XDG base directory specification
...
- Add functions that are able to query XDG.
- Replace defaults for
- &runtimepath. Does not follow #78 .
- &viewdir.
- &undodir.
- &directory.
- &backupdir. Does not follow #78 .
- vimrc location.
- Remove user vimrc file line from :version message.
2015-10-23 14:54:09 +03:00
ZyX
e96aa067f3
mark: Make clrallmarks correctly free all marks, and set zero tstamps
...
This and the previous commit together fix #3472 . This one also fixes memory leak
on :delmarks!.
2015-10-23 14:47:59 +03:00
ZyX
7a1090eef5
shada: Run set_last_cursor before writing shada file
2015-10-23 14:47:59 +03:00
Fabio Pozzi
36af4af27a
Improved it translation: make check-po-it now OK.
...
Fixed some fuzzy translation matches.
Fixed all make check-po-it errors, now it builds OK.
2015-10-20 22:01:58 +02:00
Justin M. Keyes
e38cbb9367
Merge pull request #1909 from equalsraf/tb-os_serveraddress
...
server_address()
2015-10-19 18:53:46 -04:00
Rui Abreu Ferreira
3e84a91ac1
Allow server_start to accept a NULL argument
...
Return 1 if the endpoint argument is NULL, server_start() can get
a NULL value when using server_address_new() or vim_tempname(). Removed
the function attribute.
2015-10-18 16:34:54 +01:00